package gdut.imis.controller;

import gdut.imis.domain.User;
import gdut.imis.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Objects;

/**
 * @Description
 * @Author JiaFu
 * @Date 2024/1/27 18:23
 */
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController {
    private final UserService userService;
    @GetMapping("/list")
    public List<User> getUserList(){
        List<User> list = userService.list();
        return list;
    }
}
